<%@ Page Language="C#" MasterPageFile="~/app-frame.master" AutoEventWireup="true" CodeFile="ComposeEmail.aspx.cs" Inherits="Default2" Title="Untitled Page" ValidateRequest="false" EnableEventValidation="false" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">
<script language="JavaScript" type="text/javascript" src="scripts/ComposeEmail.js"></script><%--Added by Jayashree on 12-Sep-2014,for js file--%>
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td colspan="2">
                <asp:Label ID="lblmessage" runat="server" Text="" CssClass="controlFont"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="2">                
                <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td class="pgForm_title" style="width:45%;">
                    <asp:Label ID="lblheader" runat="server" Text="Compose Email"></asp:Label>
                    </td>
                    <td class="pgForm_title" style="width:55%;">
                    <asp:Button ID="btnSendTop" runat="server" Text="Send" OnClick="btnSendTop_Click1" OnClientClick="javascript:disableThis('ctl00_ContentPlaceHolder3_btnSend','Sending...');disableThis('ctl00_ContentPlaceHolder3_btnCancel','Cancel');" UseSubmitBehavior="false" />
                    <asp:Button ID="btnCancelTop" runat="server" Text = "Cancel" UseSubmitBehavior="false" OnClick="btnCancelTop_Click"  CausesValidation="false"/>
                    <%--OnClientClick="javascript:disableThis('ctl00_ContentPlaceHolder3_btnCancel','Cancelling...'); return false;"--%>
                    </td>
                </tr>
                </table>
                </td>
            </tr>
            <tr>
                <td style="width:100px;height:10px;">
                </td>
                <td style="height:10px;">
                </td>
            </tr>
            <tr>
                <td style="width: 100px; height: 10px">
                </td>
                <td style="height: 10px">
                    <asp:TextBox ID="txtFrom" runat="server" CssClass="controlFont" Visible="false"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 100px" valign="top">
                    <asp:Label ID="lblTo" runat="server" Text="To" CssClass="controlLabelfont"></asp:Label></td>
                <td valign="top" >
                    <asp:TextBox ID="txtTo" runat="server" CssClass="controlFont" Width="400px"></asp:TextBox><asp:Image ID="imgsearch" ImageUrl="~/Images/search.gif" CssClass="SearchPopup" AlternateText="Click here for Lookup Window" ToolTip="Click here for Lookup Window" runat="server" /><asp:HiddenField ID="hfTo" runat="server" />
                </td>
            </tr>
            <tr>
                <td style="width: 100px;" valign="top">
                    <asp:Label ID="lblRelatedTo" runat="server" Text="Related To" CssClass="controlLabelfont" Width="98px"></asp:Label></td>
                <td valign="top" >
                    <asp:Label ID="txtRelatedTo" runat="server" Text="" CssClass="controlFont"></asp:Label></td>
            </tr>
            <tr visible="false">
                <td style="width: 100px;" valign="top">
                    <asp:Label ID="lblAdditionalTo" runat="server" Text="Additional To" CssClass="controlLabelfont" Width="114px" Visible="false"></asp:Label></td>
                <td valign="top" >
                    <asp:TextBox ID="txtAdditionalTo" runat="server" CssClass="controlFont" Width="400px" Height="50px" TextMode="MultiLine" Visible="false"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 100px">
                </td>
                <td >
                    <asp:Label ID="lnkCC" runat="server" CssClass="controlFont handCursor" Font-Underline="true" Text="Add CC"></asp:Label>
                    <asp:Label ID="lnkBCC" runat="server" CssClass="controlFont handCursor" Font-Underline="true" Text="Add BCC" Visible="False"></asp:Label></td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Panel ID="pnlCC" runat="server">
                        <table ID="tblCC" runat="server" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td style="width: 100px" valign="top">
                                    <asp:Label ID="lblCC" runat="server" Text="CC" CssClass="controlLabelfont"></asp:Label></td>
                                <td valign="top">
                                    <asp:TextBox ID="txtCC" runat="server" CssClass="controlFont" Width="400px" Height="50px" TextMode="MultiLine"></asp:TextBox></td>
                            </tr>
                        </table>
                    </asp:Panel>
                
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Panel ID="pnlBCC" runat="server">
                        <table ID="tblBCC" runat="server" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td style="width: 100px;" valign="top">
                                    <asp:Label ID="lblBCC" runat="server" Text="BCC" CssClass="controlLabelfont"></asp:Label></td>
                                <td valign="top">
                                    <asp:TextBox ID="txtBCC" runat="server" CssClass="controlFont" Width="400px" Height="50px" TextMode="MultiLine"></asp:TextBox></td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td style="width: 100px" valign="top">
                    <asp:Label ID="lblSubject" runat="server" Text="Subject" CssClass="controlLabelfont"></asp:Label></td>
                <td valign="top">
                    <asp:TextBox ID="txtSubject" runat="server" CssClass="controlFont" Width="400px" CausesValidation="false"></asp:TextBox>
                    <img alt="Required Field" src="Images/star.gif" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtSubject"
                    Display="None" ErrorMessage="This is a required field."></asp:RequiredFieldValidator>
                <cc1:validatorcalloutextender id="ValidatorCalloutExtender1" runat="server" highlightcssclass="maskInvalid"
                    targetcontrolid="RequiredFieldValidator1" warningiconimageurl="Images/warning_small.gif">
                    </cc1:validatorcalloutextender>
                </td>
                    
            </tr>
            <tr>
                <td style="width: 100px" valign="top">
                    <asp:Label ID="lblBody" runat="server" Text="Body" CssClass="controlLabelfont"></asp:Label></td>
                <td valign="top">
                    <asp:TextBox ID="txtBody" runat="server" CssClass="controlFont" Width="400px" Height="175px" TextMode="MultiLine"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 100px" valign="top">
                </td>
                <td valign="top">
                    <asp:Label ID="lnkAttach" runat="server" CssClass="controlFont" Text="<a href=#>Attachments</a>"></asp:Label>
                    &nbsp;<span style="font-size: 7pt;" class="defaultFont">(Max Size Limit: 4MB)</span>
                    </td>
            </tr>
            <tr>
                <td style="width: 100px" valign="top">
                </td>
                <td  valign="top">
                    <asp:Panel ID="pnlAttachments" runat="server" Width="400px">
                    <table id="tblAttachments" runat="server" width="400px" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <td valign="top">
                            <%--<asp:Label ID="lblAttSeq1" Text="1" runat="server" CssClass="controlFont"></asp:Label>--%>
                        </td>
                        <td valign="top">
                            <asp:FileUpload ID="FileUpload1" runat="server"  CssClass="controlFont"/>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" style="height:10px;" valign="top">
                        </td>
                    </tr>
                    <%--<tr>
                        <td colspan="2">
                        <asp:Label ID="lblDoc" runat="server" Text="Attach from Documents" CssClass="controlLabelFont"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                        <table width="100%" cellpadding="0" cellspacing="0" border="0">
                        <tr>
                            <td><asp:TextBox ID="txtattDoc1" runat="server" Text="" CssClass="controlFont"></asp:TextBox></td>
                        </tr>
                        </table>
                        </td>
                    </tr>--%>
                    <tr>
                        <td style="height:10px;" valign="top">
                        
                        </td>
                    </tr>
                    </table>
                        </asp:Panel>
                </td>
            </tr>
            <tr>
                <td style="height:10px;" valign="top">
                </td>
            </tr>
            <tr>
            <td colspan="2" class="pgForm_title">
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr class="Dynamic_HtmlTableBottom">
                <td style="width:45%;" align="right">
                </td>
                <td style="width:55%;" align="left">
                    <asp:Button ID="btnSend" runat="server" Text="Send" OnClick="btnSend_Click" OnClientClick="javascript:disableThis('ctl00_ContentPlaceHolder3_btnSend','Sending...');disableThis('ctl00_ContentPlaceHolder3_btnCancel','Cancel');" UseSubmitBehavior="false"/>
                    <asp:Button ID="btnCancel" runat="server" Text="Cancel" OnClick="btnCancel_Click" CausesValidation="false" UseSubmitBehavior="false" /> 
                    <%--OnClientClick="javascript:disableThis('ctl00_ContentPlaceHolder3_btnCancel','Cancelling...');"--%>
                    <%--window.history.back(-1); return false;--%>
                </td>
                </tr>
                </table>
            </td>
            </tr>
            <tr>
                <td>
                <asp:HiddenField ID="hfshowCC" runat="server" />
                <asp:HiddenField ID="hfshowBCC" runat="server" />
                <asp:HiddenField ID="hfshowAttach" runat="server" />
                </td>
            </tr>
        </table>
        
</asp:Content>

